package org.lw.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@ComponentScan("org.lw")
@PropertySource("classpath:jdbc.properties")
public class SpringConfig {
    //添加注解的配置
        @Bean
        public String helloInfo() {
            return "Hello, Spring!";
        }


}
